#include "symbol.h"

Symbol::Symbol (string var)
{
  name = var;
}

Symbol::~Symbol ()
{
  name.clear ();
}

string
Symbol::toString ()
{
  return name;
}

bool
Symbol::operator== (Symbol &compareTo)
{
  return _stricmp (name.c_str (), compareTo.name.c_str ()) == 0;
}

bool
Symbol::operator== (string compareTo)
{
  return _stricmp (name.c_str (), compareTo.c_str ()) == 0;
}

bool
Symbol::operator== (const char *compareTo)
{
  return _stricmp (name.c_str (), compareTo) == 0;
}
